<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册</title>
</head>
<body>
<div id="login">
<div>财豆说</div>
<form action="." method="post">
	{% if form.userNotExist %}
		<p style="color: red;">
			用户不存在
		</p>
	{% endif %}
	{% if form.passwordIsWrong %}
		<p style="color: red;">
			密码错误
		</p>
	{% endif %}
    <div class="field">
        {% if form.name.errors %}
        	<p style="color: red;">
				邮箱不能为空
			</p>
        {% endif  %}
    </div>
    <div class="field">
        <label for="id_name">邮箱:</label>
        {{ form.name }}
    </div>
    <div class="field">
        {% if form.password.errors %}
        	<p style="color: red;">
        		密码不能为空
        	</p>
        {% endif  %}
    </div>
    <div class="field">
        <label for="id_password">密码:</label>
        {{ form.password }}
    </div>
    <input type="submit" value="登陆">
    <a href="development">注册</a>
</form>
</div>
</body>
</html>